import { Request } from "@/utils/request";
export class ProjectList extends Request {
  constructor(baseUrl?:string){
    super(baseUrl);
  }
  // BI大屏-地图项目数据
  project(data: {
    projectName: string
  }){
    return this.post('/ys-amp-web/bi/map/project', data)
  }
  // 基础数据-项目信息管理-分页查询
  pageList(data: {
    projectCode: string
  }){
    return this.post('/ys-amp-web/basic/projectManagement/pageList', {...data,itemsPerPage: 99999999})
  }
  
  // 基础数据-项目信息-查询单条
  queryById(data: {
    projectId: string | number
  }){
    return this.post('/ys-amp-web/basic/projectManagement/queryById?projectId=' + data.projectId, data)
  }
  
  // 资产台账管理-项目信息-资产合同台账
  queryProjectAssetsCont(data: {
    formatId?: string | number
    projectId: string | number
    keyword: string | number
  }){
    return this.post('/ys-amp-web/account/operationalFixedAssets/queryProjectAssetsCont', data)
  }
  
  // 资产台账管理-合同台账-查询详情
  accountContractQueryById(params: {
    id: string | number
  }){
    return this.get('/ys-amp-web/account/accountContract/queryById?id=' + params.id)
  }

}
export const ProjectListApi = new ProjectList()
